<?php
class TDataTableContratoVagasLotacoes extends TDataTable
{    
    public function __construct($contratoid, $options = array())
    {	
        $columns = array();
        $key = 'identificador';        
        $criterio = array();
        $criterio['precondicao']= 'contratoid ='. $contratoid;
        
        parent::__construct(new ViewVagasPorCargo(), $key, $criterio, $options, $columns);
        $this->addColumnsData(array('cargo', 'ativa', 'lotacao', 'quant'));
    }
}